<%--
  Created by IntelliJ IDEA.
  User: lucky
  Date: 2020/12/17
  Time: 14:24
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%--**最重要的两点：**
1、将enctype改为multipart/form-data
2、method必须为post--%>
<form action="upload" enctype="multipart/form-data" method="post">
    名称:<input type="text" name="imageName"> <br>
    文件:<input type="file" name="file">
    <button type="submit">提交</button>
</form>
</body>
</html>
